dir=$1

if [ -d "$dir" ]; then
    echo "$dir 已经存在"
else
    mkdir -p $dir
fi

cd $dir

echo "模块名:"

read MODULE_NAME

go mod init $MODULE_NAME

go get fyne.io/fyne/v2@latest

go install fyne.io/fyne/v2/cmd/fyne@latest


